package com.blacktea.structuralpatterns.proxypattern.controller;

import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author: black tea
 * @date: 2023/3/23 14:53
 */
@RequestMapping("proxy")
@RestController
public class ProxyPatternController {

    @PostMapping("/{name}")
    public Map<String, Object> test(@PathVariable String name, @RequestBody Map<String, Object> params){
        Map<String, Object> response = new HashMap<>();
        response.put("code", 200);
        response.put("message", "成功");
        return response;
    }

}
